package com.trussell.genesis.windowutils.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.trussell.genesis.Genesis;
import com.trussell.genesis.GenesisImplementor.Mode;

public class ModeActionListener implements ActionListener {
	
	private Mode myMode;
	
	public ModeActionListener(Mode mode) {
		myMode = mode;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		Genesis.getInstance().setMode(myMode);
	}
}
